package com.cskaoyan.bean.vo.wx;

import com.cskaoyan.bean.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Can
 * @since 2022/06/29 10:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WXGoodsDetailVo {
    List<MarketGoodsAttribute> attribute;
    MarketBrand brand;

    // 不需要做 默认为空
    List<MarketGroupon> groupon = new ArrayList<>();

    MarketGoods info;
    List<MarketIssue> issue;
    List<MarketGoodsProduct> productList;

    // 分享按钮 默认全部置为true
    Boolean share = true;
    // 收藏按钮 从collect表中取值
    Byte userHasCollect;

    String shareImage;

    InnerCommentOfWXGoodsDetailVo comment;

    List<InnerSpecificationOfWXGoodsDetailVo> specificationList;

    public WXGoodsDetailVo(List<MarketGoodsAttribute> attribute, MarketBrand brand, MarketGoods info, List<MarketIssue> issue, List<MarketGoodsProduct> productList, Byte userHasCollect, String shareImage, InnerCommentOfWXGoodsDetailVo comment, List<InnerSpecificationOfWXGoodsDetailVo> specificationList) {
        this.attribute = attribute;
        this.brand = brand;
        this.info = info;
        this.issue = issue;
        this.productList = productList;
        this.userHasCollect = userHasCollect;
        this.shareImage = shareImage;
        this.comment = comment;
        this.specificationList = specificationList;
    }
}
